package com.woniuxy.service.impl;

import com.woniuxy.dao.ManagerDao;
import com.woniuxy.service.RbacManagerService;
import org.springframework.context.ApplicationContext;

import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Todo: service实现类,需要调用dao层！
 * @DateTime: 22/08/19/0019 17:42
 * @Component: 成都蜗牛学苑
 **/
public class RbacManagerServiceImpl implements RbacManagerService {
//    谁来给这个属性赋值？如何赋值？
    private ManagerDao managerDao;

    public void setManagerDao(ManagerDao managerDao) {
        this.managerDao = managerDao;
    }

    @Override
    public List<Map<String, String>> findAll() {
        return managerDao.findAll();
    }
}
